<template>
    <div class="not_auto">
        <div class="mark">该订单需下载密马APP查看卡密</div>
        <van-button
                class="btn"
                color="linear-gradient(to right, rgb(244,194,11), rgb(255,151,15))"
                @click="jumpApp"
        >立即下载
        </van-button
        >
    </div>
</template>

<script>
import { mapState } from "vuex";
export default {
	methods: {
		// 判断是什么手机端  点开
		jumpApp() {
			// var u = navigator.userAgent;
			// var isAndroid = u.indexOf("Android") > -1 || u.indexOf("Adr") > -1; //android终端
			// var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
			// if (isAndroid) {
			// 	window.open(this.apps.android_url)
			// } else {
			// 	window.open(this.apps.ios_url)
			// }
			this.$router.push({
        path: '/personal_page'
      })
		},
	},
	computed: {
		...mapState(["apps"]),
	},
};
</script>

<style lang="scss" scoped>
    .not_auto {
        width: 100%;
        background: #ffffff;
        height: 200px;
        padding-top: 58px;
        text-align: center;

        .mark {
            font-size: 16px;
            font-weight: 600;
        }

        .btn {
            width: 78px;
            height: 28px;
            border-radius: 18px;
            color: #ffffff;
            font-size: 12px;
            margin-top: 12px;
        }
    }
</style>
